package com.aiit.carinsurance2.service.impl;

import com.aiit.carinsurance2.dao.CourierDao;
import com.aiit.carinsurance2.pojo.Courier;
import com.aiit.carinsurance2.service.CourierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CourierServiceImpl implements CourierService {
    @Autowired
    private CourierDao courierDao;
    @Override
    public int insert(Courier courier) {
        return courierDao.insert(courier);
    }

    @Override
    public Courier queryallcourier(Integer uid) {
        return courierDao.queryallcourier(uid);
    }
}
